} else {
if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
$this->reConnectTimes++;
return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
}
}
if ($e instanceof \PDOException) {
throw new PDOException($e, $this->config, $this->getLastsql());
} else {
throw $e;
}
}
}
/**
* 执行语句.
*
SQLSTATE | HY000 |
Driver Error Code | 2002 |
Driver Error Message | Connection refused |
Error Code | 10501 |
Error Message | SQLSTATE[HY000] [2002] Connection refused |
Error SQL |
type | mysql |
hostname | 127.0.0.1 |
database | 16757com |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | wdphp_ |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
read_master | false |
fields_strict | true |
fields_cache | true |
trigger_sql | true |
builder | |
query | |
break_reconnect | false |
break_match_str | [] |
auto_param_bind | true |
schema_cache_path | /www/wwwroot/www.16757.com/runtime/schema/ |
USER | www |
HOME | /home/www |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_REAL_IP | 47.76.153.81 |
HTTP_CONNECTION | close |
HTTP_X_FORWARDED_FOR | 220.181.57.216,47.76.153.81 |
HTTP_CLIENT_IP | 220.181.57.216 |
HTTP_REFERER | http://www.baidu.com/search/spider.html |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html) |
PATH_INFO | |
HTTP_HOST | www.16757.com |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.16757.com |
SERVER_PORT | 443 |
SERVER_ADDR | 103.26.78.158 |
REMOTE_PORT | 37664 |
REMOTE_ADDR | 111.173.80.27 |
SERVER_SOFTWARE | nginx/1.27.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.16757.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //so/%20%E8%8C%B6%E5%85%B7%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/so/%20%E8%8C%B6%E5%85%B7%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2.html |
SCRIPT_FILENAME | /www/wwwroot/www.16757.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1731364101.859 |
REQUEST_TIME | 1731364101 |